package com.photonpay.api.request;

import cn.hutool.http.Method;
import com.photonpay.api.response.CancelCardResponse;
import lombok.Builder;
import lombok.Data;

/**
 * 注销卡
 * @author ：lo-
 * @date ：Created in 2023/11/22 14:40
 */
@Data
@Builder
public class CancelCardRequest extends BaseRequest<CancelCardResponse> {

    /**
     * 卡ID
     */
    private String cardId;

    @Override
    public Class<CancelCardResponse> getResponseClass() {
        return CancelCardResponse.class;
    }

    @Override
    public String getBasePath() {
        return "/vcc/open/v2/cancelCard";
    }

    @Override
    public Method getMethod() {
        return Method.POST;
    }

    /**
     * 是否需要签名
     *
     * @return true = 需要
     */
    @Override
    public boolean isSign() {
        return true;
    }
}
